package day1206zy.day1206zy13;

import java.io.FileInputStream;
import java.io.IOException;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.util.Properties;

public class Demo {
    public static void main(String[] args) throws IOException, ClassNotFoundException, NoSuchMethodException, IllegalAccessException, InvocationTargetException, InstantiationException {
        Properties p = new Properties();
        FileInputStream in = new FileInputStream("src\\day1206zy13\\tt.properties");
        p.load(in);
        in.close();
        Class<?> clazz = Class.forName(p.getProperty("dz"));
        Method run = clazz.getDeclaredMethod("run");
        Object o = clazz.newInstance();
        run.invoke(o);
    }
}
